//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
// 			VisualNovelToolkit		     /_/_/_/_/_/.
// Copyright ©2013 - Sol-tribe.	/_/_/_/_/_/_/_/_/_/.
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.

using UnityEngine;
using System.Collections;

namespace ViNoToolkit{

	/// <summary>
	/// User interface base.
	/// </summary>
	public class UIBase : MonoBehaviour {
		#region Virtual Methods

		virtual public void OnAwake(){}

		virtual public void OnStart(){}

		virtual public void OnUpdate(){}

		virtual public void OnEnabled(){}

		virtual public void OnDisabled(){}

		virtual public bool OnTouchBegan(){ return false; }

		virtual public bool OnTouchMoving(){ return true; }

		virtual public bool OnTouchOut(){ return true; }

		virtual public bool OnTouchEnded(){ return false; }

		virtual public void SetNormalColor( float duration ){}

		virtual public void SetHoverColor( float duration ){}

		virtual public void SetActiveColor(){}

		virtual public void SetDeactiveColor(){}

		virtual public void SetFocusedColor(){}

		#endregion
		
		void Awake(){
			OnAwake();
		}

		void Start(){
			OnStart();
		}

		void Update(){
			OnUpdate();
		}

		void OnEnable(){
			OnEnabled();
		}

		void OnDisable(){
			OnDisabled();
		}
	}

}